const mongoose = require('mongoose');
const mongoConnectDB = require('../mondodb/connect')

const Schema = mongoose.Schema;

const userSchema = new Schema({
	user: {
		type: String,
		required: true
	},
	pass: {
		type: String,
		required: true
	},
}, {
	timestamps: true,
})

userSchema.set('autoIndex', false);

const lessUsers = mongoConnectDB.model('lessUsers', userSchema);


module.exports = lessUsers;